package com.cc.openeye.dynamic.recommend.items.loadMore

import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.rememberUpdatedState

@Composable
fun PreLoadMoreComponent(onLoadMore: () -> Unit) {

    val currOnLoadMore = rememberUpdatedState(onLoadMore)

    LaunchedEffect(true) {
        currOnLoadMore.value.invoke()
    }

}